<%# check-box to select additional use of "custom sharing"; expected parameters: -%>
<%# 1) custom_sharing_cb_for_scope - sharing scope of the radio button with scope selection, to which this checkbox element refers -%>
<%# 2) sharing_scope - sharing scope in the current policy -%>
<%# 2) use_custom_sharing - flag denoting, whether this checkbox should appear checked or not -%>

<div id="include_custom_sharing_div_<%= custom_sharing_cb_for_scope -%>" style="display: <%= (custom_sharing_cb_for_scope == sharing_scope) ? "block" : "none"-%>;">
	<label for="include_custom_sharing_<%= custom_sharing_cb_for_scope -%>">
		<input type="checkbox" name="sharing[include_custom_sharing_<%= custom_sharing_cb_for_scope -%>]" id="include_custom_sharing_<%= custom_sharing_cb_for_scope -%>" style="margin: 0 0.3em 0 2em;"
		       value="1" <%= "checked='checked'" if (custom_sharing_cb_for_scope == sharing_scope && use_custom_sharing) -%> onclick="javascript:setCustomSharingDivVisibility(<%= custom_sharing_cb_for_scope -%>);" />
	  Also use custom sharing permissions
	</label>
</div>